<!-- 进入起始页3秒后直接跳转到index页面 -->
<template>
	<view class="homepage">
	</view>
</template>

<script>
	export default {
		onLoad() {
			setTimeout(() => {
				uni.switchTab({
					url: '/pages/index/index'
				});
			}, 3000);
		}
	}
</script>

<style>
	.homepage {
		background-image: url('/static/img/start-back.jpg');
		background-repeat: no-repeat;
		/* 不平铺 */
		background-position: 50% 50%;
		/* 水平位置居中，垂直位置向下偏移100% */
		background-size: 100% 100%;
		/* 指定具体的宽度和高度进行缩放 */
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		height: 90vh;
	}
</style>
